home *** CD-ROM | disk | FTP | other *** search
/ ADA Programming Guide / ADA Programming Guide.iso / ada_gnu / include / locale.h < prev    next >
C/C++ Source or Header  |  1996-01-30  |  1KB  |  61 lines

  1. /* This is file locale.h */
  2. /*
  3. ** Copyright (C) 1994 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  4. **
  5. ** This file is distributed under the terms listed in the document
  6. ** "copying.dj", available from DJ Delorie at the address above.
  7. ** A copy of "copying.dj" should accompany this file; if not, a copy
  8. ** should be available from where this file was obtained.  This file
  9. ** may not be distributed without a verbatim copy of "copying.dj".
  10. **
  11. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  12. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. */
  14.  
  15. #ifndef _LOCALE_H_
  16. #define _LOCALE_H_
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. #define LC_COLLATE    0x01
  23. #define LC_CTYPE    0x02
  24. #define LC_MONETARY    0x04
  25. #define LC_NUMERIC    0x08
  26. #define LC_TIME        0x10
  27. #define LC_ALL        0x1f
  28.  
  29. #ifndef NULL
  30. #define NULL 0
  31. #endif
  32.  
  33. struct lconv {
  34.   char *currency_symbol;
  35.   char *decimal_point;
  36.   char *grouping;
  37.   char *int_curr_symbol;
  38.   char *mon_decimal_point;
  39.   char *mon_grouping;
  40.   char *negative_sign;
  41.   char *positive_sign;
  42.   char *thousands_sep;
  43.   char frac_digits;
  44.   char int_frac_digits;
  45.   char n_cs_precedes;
  46.   char n_sep_by_space;
  47.   char n_sign_posn;
  48.   char p_cs_precedes;
  49.   char p_sep_by_space;
  50.   char p_sign_posn;
  51. };
  52.  
  53. struct lconv *localeconv(void);
  54. char *setlocale(int category, const char *locale);
  55.  
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59.  
  60. #endif
  61.